<?php

namespace App;

use DB;
use Moloquent;
use Jenssegers\Mongodb\Eloquent\Model as Eloquent;

class Mongo extends Eloquent
{
    protected $connection = 'mongodb';  //库名
    protected $collection = 'users';     //文档名
    protected $primaryKey = '_id';    //设置id
    protected $fillable = [
        'name', 'email', 'password','avatar','github_id',
    ];
}
